package com.hxzy.controller.admin.mapstruct;

import com.hxzy.controller.admin.dicttype.req.DictTypeAddReq;
import com.hxzy.controller.admin.dicttype.req.DictTypeEditReq;
import com.hxzy.controller.admin.dicttype.req.DictTypeReq;
import com.hxzy.controller.admin.dicttype.resp.DictTypeResp;
import com.hxzy.entity.SysDictType;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Desc 字典类型转换
 * @Author: admin
 * @Date: 2023/07/03/14:47
 */
@Mapper
public interface DictTypeConvert {

    DictTypeConvert INSTANCE= Mappers.getMapper(DictTypeConvert.class);

    List<DictTypeResp>  convert(List<SysDictType> list);

    SysDictType  convert(DictTypeAddReq req);

    SysDictType convert(DictTypeEditReq req);


    DictTypeResp convert(SysDictType entity);


}
